# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=got
_pkgname=got-portable
pkgver=0.104
pkgrel=0
pkgdesc="A VCS which prioritizes ease of use and simplicity over flexibility"
url="https://gameoftrees.org/"
arch="all"
license="ISC"
makedepends="
	libbsd-dev
	libevent-dev
	libretls-dev
	ncurses-dev
	util-linux-dev
	zlib-dev
	"
options="!check"
subpackages="$pkgname-doc"
source="https://gameoftrees.org/releases/portable/got-portable-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	./configure --prefix=/usr --exec_prefix=/usr --mandir=/usr/share/man \
		--sysconfdir=/etc --localstatedir=/var
	make
}

check() {
	make tests
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c77097e950c78405800e19178de9e3197f11da6a18701313964e386ae28e9abfd32e3833713e521c4948b177cb8e0c5ab48c94d12547a2296e508a48fe99d0bf  got-portable-0.104.tar.gz
"
